home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / nihcl-30.lha / nihcl-3.0 / ex / AllVehicles.h < prev    next >
C/C++ Source or Header  |  1990-05-15  |  904b  |  36 lines

  1. #ifndef ALLVEHICLES_H
  2. #define ALLVEHICLES_H
  3.  
  4. // $Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/ex/RCS/AllVehicles.h,v 3.0 90/05/15 22:43:15 kgorlen Rel $
  5.  
  6. // AllVehicles.h -- LinkedList of all Vehicles
  7.  
  8. #ifndef MI
  9. #define MI
  10. #endif
  11.  
  12. #include "LinkedList.h"
  13.  
  14. class AllLink;
  15. class Iterator;
  16.  
  17. class AllVehicles: public LinkedList {
  18.     DECLARE_MEMBERS(AllVehicles);
  19. #ifndef BUG_38
  20. // internal <<AT&T C++ Translator 2.00 06/30/89>> error: bus error (or something nasty like that)
  21. protected:              // storer() functions for object I/O
  22.     virtual void storer(OIOofd& fd) const
  23.       { LinkedList::storer(fd); };
  24.     virtual void storer(OIOout& strm) const
  25.       { LinkedList::storer(strm); };
  26. #endif
  27. protected:
  28.     virtual Link& linkCastdown(Object&) const;
  29. public:
  30.     AllVehicles() {}
  31.     virtual void addVehicle(AllLink&);
  32.     virtual void removeVehicle(AllLink&);
  33. };
  34.  
  35. #endif
  36.